#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;

class ShuffleArray{
private:
    vector<int>dataset;
public:
    ShuffleArray(vector<int>& src): dataset(src){}
    vector<int> reset(){
        return dataset;
    }
    vector<int>shuffle(){
        vector<int>vshuffles=dataset;
        for(int i=1;i<vshuffles.size();i++){
            int r=rand()%(i+1);
            if(r!=i){
                swap(vshuffles[r],vshuffles[i]);
            }
        }
        return vshuffles;
    }
};